<include file="Public:headersmall"/>
<style>
.center{width:1000px;margin:0 auto;margin-top:10px}
.left{width:160px;border:1px solid #dddddd;float:left;}
.main{width:830px;float:right;}
.title2{display:block;background:#317ee7;color:#fff;text-align:left;font-size:16px;height:25px;line-height:25px}
.left dl{display:block;background:#fff;font-size:13px;height:25px;line-height:25px}
.help{margin-top:5px}

.goods{border:1px solid #dedede;width:180px;height:235px;float:left;margin-left:10px;padding:5px}
.goods_pic{width:160px;margin:0 auto;}
.goods_pic img{width:160px}
.title{font-size:13px;width:160px;margin:0 auto;margin-top:10px;max-height:35px;overflow:hidden}
.price{width:160px;margin:0 auto;margin-top:10px;font-weight:bold;font-size:15px;color:#e8393c}

.index_page{width:840px;margin:0 auto;float:right;margin-top:10px;color:#0066CC;cursor:pointer;}
.page{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;display:inline-block;color:#0066CC;cursor:pointer;}
.page:hover{color:#0066CC}
.page_current{height:20px;width:20px;border:1px solid #FF5500; text-align:center;vertical-align:middle;color:#FF0000;font-weight:bold;background:#FFEEE5;display:inline-block;}
</style>
<div class="center">您的位置：<a href="__APP__">首页</a>-><a href="__GROUP__/Member">会员中心</a>-><font color="#317ee7">商品收藏</font></div>
<div class="center">
   <div class="left">
      <include file="left"/>
   </div>

   <div class="main">
<volist name="mylist" id="mylist">
       <div class="goods">
	       <div class="goods_pic"><a href="__GROUP__/Goods/item/?id={$mylist.goods_id}"><img src="__APP__/{$mylist.m_pic}"></a></div>
		   <div class="title"><a href="__GROUP__/Goods/item/?id={$mylist.goods_id}">{$mylist.goods_name}</a></div>
		   <div class="price"><span style="float:left">￥{$mylist.price}</span><span style="float:right;font-weight:100;color:#333333;font-size:13px"><a href="javascript:delStore({$mylist.store_id});">取消</a></span></div>
	   </div>
</volist>
<if condition="$mylist eq ''">
	   <div class="history" style="margin-top:20px;text-align:center">没有收藏过商品</div>
</if>
      <div id="page" style="clear:both;margin-top:20px">{$page}</div>
   </div>
</div>

<script>
function delStore(t){
          if(confirm('确认取消收藏')) {
				$.ajax({
				    type:"GET",
					url:"__URL__/goodstore/?action=del",
					dataType:"html",
					data:{store_id:t},
					success:function(data){
					    jSuccess("<strong>取消成功！</strong>",{TimeShown : 500,VerticalPosition : 'center',HorizontalPosition : 'center',onClosed:function(){window.parent.location.reload();}})
					}
				})
		   }    
}
</script>

<link rel="stylesheet" type="text/css" href="__APP__/statics/css/jNotify.jquery.css" />
<script type="text/javascript" src="__APP__/statics/jNotify.jquery.js"></script>
<div style="clear:both"></div>
<br>
<include file="Public:footersmall"/>